{% extends "base.html" %}
{% block content %}
    <div class="container">
        <div class="panel panel-primary">
            <div class="panel-heading">账户信息</div>
            <div class="panel-body">

                <p>用户名: {{ user_info.username }}</p>
                <p>邮箱: {{ user_info.email }}</p>
                <p>工程师ID: {{ user_info.engineer_id }}</p>
                <p>部门: {{ user_info.department }}</p>

                <!-- 显示消息 -->
                {% if messages %}
                    {% for message in messages %}
                        <div class="alert {% if message.tags %}alert-{{ message.tags }}{% endif %}">
                            {{ message }}
                        </div>
                    {% endfor %}
                {% endif %}

                <form method="post" enctype="multipart/form-data">
                    {% csrf_token %}
                    <label for="signature_image">上传签名图片:</label>
                    <input type="file" name="signature_image" id="signature_image">
                    <button type="submit" style="margin-top: 10px;" class="btn btn-success">上传</button>
                </form>
            </div>
        </div>

    </div>


{% endblock %}